package example

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type BwAssessmentTasksRouter struct {}

// InitBwAssessmentTasksRouter 初始化 考核任务 路由信息
func (s *BwAssessmentTasksRouter) InitBwAssessmentTasksRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	bwAssessmentTasksRouter := Router.Group("bwAssessmentTasks").Use(middleware.OperationRecord())
	bwAssessmentTasksRouterWithoutRecord := Router.Group("bwAssessmentTasks")
	bwAssessmentTasksRouterWithoutAuth := PublicRouter.Group("bwAssessmentTasks")
	{
		bwAssessmentTasksRouter.POST("createBwAssessmentTasks", bwAssessmentTasksApi.CreateBwAssessmentTasks)   // 新建考核任务
		bwAssessmentTasksRouter.DELETE("deleteBwAssessmentTasks", bwAssessmentTasksApi.DeleteBwAssessmentTasks) // 删除考核任务
		bwAssessmentTasksRouter.DELETE("deleteBwAssessmentTasksByIds", bwAssessmentTasksApi.DeleteBwAssessmentTasksByIds) // 批量删除考核任务
		bwAssessmentTasksRouter.PUT("updateBwAssessmentTasks", bwAssessmentTasksApi.UpdateBwAssessmentTasks)    // 更新考核任务
	}
	{
		bwAssessmentTasksRouterWithoutRecord.GET("findBwAssessmentTasks", bwAssessmentTasksApi.FindBwAssessmentTasks)        // 根据ID获取考核任务
		bwAssessmentTasksRouterWithoutRecord.GET("getBwAssessmentTasksList", bwAssessmentTasksApi.GetBwAssessmentTasksList)  // 获取考核任务列表
	}
	{
	    bwAssessmentTasksRouterWithoutAuth.GET("getBwAssessmentTasksPublic", bwAssessmentTasksApi.GetBwAssessmentTasksPublic)  // 考核任务开放接口
	}
}
